'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.post('/delgrades', controller.grades.delgrades);
  router.post('/addgrades', controller.grades.addgrades);
  router.post('/updgrades', controller.grades.updgrades);
  router.post('/selgrades', controller.grades.selgrades);
  router.post('/judgrades', controller.grades.judgrades);
};
